<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.prime.com.tr/ui"
	template="/WEB-INF/jsf/template.xhtml">

	<ui:define name="content">
		<h:form prependId="false">
			<p:commandButton image="back" ajax="false" immediate="true" style="margin-right:20px;" value="#{rendezvousmsgs['navigation.back']}" action="/jsf/rendezvous/viewRendezVous.xhtml"/>
		
			<p:panel header="#{rendezvousmsgs['patient.title']} Details" style="margin-top:10px">
				<p:messages />
				<h:panelGrid id="detail" columns="2" styleClass="grid" columnClasses="label,value">
					<h:outputText value="#{rendezvousmsgs['patient.patpatient.title']}:*" />
							<h:inputText id="rendezvous_patpatient" value="#{RendezVousComponent.patient.patPatient}" required="true" label="rendezvous_patpatient" />
					<h:outputText value="#{rendezvousmsgs['patient.patdateentree.title']}:" />
							<p:calendar id="rendezvous_patdateentree" value="#{RendezVousComponent.patient.patDateEntree}" required="false"  converter="primefacesCalendarConverter" />
					<h:outputText value="#{rendezvousmsgs['patient.pattelcontact.title']}:" />
							<h:inputText id="rendezvous_pattelcontact" value="#{RendezVousComponent.patient.patTelContact}" required="false" label="rendezvous_pattelcontact" />
					<h:outputText value="#{rendezvousmsgs['patient.patdivers.title']}:" />
							<h:inputText id="rendezvous_patdivers" value="#{RendezVousComponent.patient.patDivers}" required="false" label="rendezvous_patdivers" />
					<h:outputText value="#{rendezvousmsgs['patient.patdatesortie.title']}:" />
							<p:calendar id="rendezvous_patdatesortie" value="#{RendezVousComponent.patient.patDateSortie}" required="false"  converter="primefacesCalendarConverter" />
					<h:outputText value="#{rendezvousmsgs['patient.pataxemedical.title']}:" />
							<h:inputText id="rendezvous_pataxemedical" value="#{RendezVousComponent.patient.patAxeMedical}" required="false" label="rendezvous_pataxemedical" />
					<h:outputText value="#{rendezvousmsgs['patient.patsousaxemedical.title']}:" />
							<h:inputText id="rendezvous_patsousaxemedical" value="#{RendezVousComponent.patient.patSousAxeMedical}" required="false" label="rendezvous_patsousaxemedical" />
					<h:outputText value="#{rendezvousmsgs['patient.patmotifsortie.title']}:" />
							<h:inputText id="rendezvous_patmotifsortie" value="#{RendezVousComponent.patient.patMotifSortie}" required="false" label="rendezvous_patmotifsortie" />
					<h:outputText value="#{rendezvousmsgs['patient.patdiagnostic.title']}:" />
							<h:inputText id="rendezvous_patdiagnostic" value="#{RendezVousComponent.patient.patDiagnostic}" required="false" label="rendezvous_patdiagnostic" />
					<h:outputText value="#{rendezvousmsgs['patient.patdatedernierevisite.title']}:" />
							<p:calendar id="rendezvous_patdatedernierevisite" value="#{RendezVousComponent.patient.patDateDerniereVisite}" required="false"  converter="primefacesCalendarConverter" />
         			<h:panelGroup>
         				<p:commandButton image="save" ajax="false" style="margin-right:20px;" value="#{rendezvousmsgs['navigation.save']}" action="#{RendezVousComponent.saveRendezVousPatient(RendezVousComponent.rendezvous.rdvRendezVous, RendezVousComponent.patient)}"/>
         			</h:panelGroup>
				</h:panelGrid>
			</p:panel>

		</h:form>
	</ui:define>
</ui:composition>